//
//  APIManager+Login.h
//  NoneCar
//
//  Created by DongSen on 2018/7/13.
//  Copyright © 2018年 董森森. All rights reserved.
//

#import "APIManager.h"

@interface APIManager (Login)


/**
 账号登陆

 @param parmars <#parmars description#>
 @param sucess <#sucess description#>
 @param failure <#failure description#>
 @return <#return value description#>
 */
- (NSURLSessionDataTask *)PostAccountLoginAccount:(NSDictionary*)parmars sucess:(void(^)(NSInteger code, NSDictionary* dict))sucess failure:(void(^)(NSInteger code, NSError *error))failure;


/**
 手机号登陆
 @param parmars <#parmars description#>
 @param sucess <#sucess description#>
 @param failure <#failure description#>
 @return <#return value description#>
 */
- (NSURLSessionDataTask *)PostMobileLoginAccount:(NSDictionary*)parmars sucess:(void(^)(NSInteger code, NSDictionary* dict))sucess failure:(void(^)(NSInteger code, NSError *error))failure;


/**
 发送验证码

 @param parmars <#parmars description#>
 @param sucess <#sucess description#>
 @param failure <#failure description#>
 @return <#return value description#>
 */
- (NSURLSessionDataTask *)PostSendCode:(NSDictionary*)parmars sucess:(void(^)(NSInteger code, NSDictionary* dict))sucess failure:(void(^)(NSInteger code, NSError *error))failure;


/**
 修改密码

 @param parmars <#parmars description#>
 @param sucess <#sucess description#>
 @param failure <#failure description#>
 @return <#return value description#>
 */
- (NSURLSessionDataTask *)PostChangePassWord:(NSDictionary*)parmars sucess:(void(^)(NSInteger code, NSDictionary* dict))sucess failure:(void(^)(NSInteger code, NSError *error))failure;


/**
 获取我的个人信息

 @param parmars <#parmars description#>
 @param sucess <#sucess description#>
 @param failure <#failure description#>
 @return <#return value description#>
 */
- (NSURLSessionDataTask *)PostGetUserInfo:(NSDictionary*)parmars sucess:(void(^)(NSInteger code, NSDictionary* dict))sucess failure:(void(^)(NSInteger code, NSError *error))failure;



/**
 退出登陆

 @param parmars <#parmars description#>
 @param sucess <#sucess description#>
 @param failure <#failure description#>
 @return <#return value description#>
 */
- (NSURLSessionDataTask *)PostLoginOut:(NSDictionary*)parmars sucess:(void(^)(NSInteger code, NSDictionary* dict))sucess failure:(void(^)(NSInteger code, NSError *error))failure;

@end
